(file_name_absolute_p) [WINDOWSNT]: Support absolute file names with forward
authorEli Zaretskii <eliz@gnu.org>
Fri, 24 Nov 2006 20:58:30 +0000 (20:58 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 24 Nov 2006 20:58:30 +0000 (20:58 +0000)
slashes.

lib-src/emacsclient.c

index 3040206ef3422e2bd3c45d4923a4b65a739a005c..5e8b563984d9cc3fc977350020fdf3ba10c1cc80 100644 (file)
@@ -452,7 +452,7 @@ file_name_absolute_p (filename)
 #ifdef WINDOWSNT
   /* X:\xxx is always absolute; X:xxx is an error and will fail.  */
   if (islower (tolower (filename[0]))
-      && filename[1] == ':' && filename[2] == '\\')
+      && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/'))
     return TRUE;
 
   /* Both \xxx and \\xxx\yyy are absolute.  */